package com.touni.designpattern.proxypattern.inter;

/**
 * @ClassName : RealShape
 * @Description :
 * @Author : lwq
 * @Date: 2020-11-12 16:28
 */
public class RealShape implements Shape{
    private String shapeName;

    public RealShape(String shapeName){
        this.shapeName = shapeName;
    }

    @Override
    public void draw() {
        System.out.println("draw a shape shapeName=" + shapeName);
        loadFromDisk();
    }

    private void loadFromDisk(){
        System.out.println("load from disk shapeName=" + shapeName);
    }

}
